@import '../../../index.scss';

page {
  background-color: #f8f8f8;
}

.container {
  .game {
    box-sizing: border-box;

    .headline {
      font-size: 28rpx;
      color: #000;
      display: flex;
      align-items: center;
      font-weight: bold;
      padding: 20rpx;

      .tip {
        height: 24rpx;
        width: 8rpx;
        background-color: $primary-color;
        margin-right: 14rpx;
        border-radius: 100px;
      }
    }

    .scroll-view {
      box-sizing: border-box;
      width: 100vw;

      .topScol {
        white-space: nowrap;
        padding-left: 20rpx;

        .item {
          display: inline-block;
          margin-right: 20rpx;

          width: 320rpx;

          .cover {
            width: 100%;
            height: 180rpx;
            border-radius: 14rpx;
            overflow: hidden;
            background-color: #f8f8f8;

            image {
              width: 100%;
              height: 100%;
            }
          }

          .cont {
            padding-top: 10rpx;

            .name {
              font-size: 26rpx;
              font-weight: bold;

              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;

            }

            .time {
              font-size: 22rpx;
              padding-top: 20rpx;
              color: #666;
            }

            .num {
              font-size: 22rpx;
              color: #666;
              display: flex;
              align-items: center;
              padding-top: 10rpx;


              .status {
                margin-right: 10rpx;
                font-weight: bold;
                padding: 4rpx 8rpx;
                border: 1rpx solid #787878;
                border-radius: 4rpx;
                font-size: 16rpx;

                &.status1 {
                  color: $primary-color;
                  border: 1rpx solid $primary-color;
                }

                &.status2 {
                  color: red;
                  border: 1rpx solid red;
                }
              }
            }

          }
        }
      }


    }
  }

  .active {
    padding: 20rpx;
    box-sizing: border-box;

    .headline {
      font-size: 28rpx;
      color: #000;
      display: flex;
      align-items: center;
      font-weight: bold;
      padding-bottom: 20rpx;

      .tip {
        height: 24rpx;
        width: 8rpx;
        background-color: $primary-color;
        margin-right: 14rpx;
        border-radius: 100px;
      }
    }

    .box {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20rpx;
      box-sizing: border-box;

      .item {
        background-color: #fff;

        border-radius: 14rpx;
        overflow: hidden;
        box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.04);

        .cover {
          width: 100%;
          padding-bottom: 70%;
          position: relative;

          image {
            width: 100%;
            height: 100%;
            position: absolute;
          }

          .line {
            position: absolute;
            left: 20rpx;
            top: 20rpx;
            font-size: 20rpx;
            padding: 6rpx 20rpx;
            background-color: red;
            border-radius: 4rpx;
            background-color: $primary-color;
            color: #fff;
            opacity: .85;
          }
        }

        .cont {
          padding: 20rpx;

          .title {
            font-size: 26rpx;
            font-weight: bold;
            color: #000;
            line-height: 1.5;
            height: 3em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
          }

          .status {
            font-size: 22rpx;
          }

          .time,
          .num {
            font-size: 22rpx;
            color: #787878;
            display: flex;
            align-items: center;
            padding-top: 10rpx;

            .status {
              margin-right: 10rpx;
              font-weight: bold;
              padding: 4rpx 8rpx;
              border: 1rpx solid #787878;
              border-radius: 4rpx;
              font-size: 16rpx;

              &.status1 {
                color: $primary-color;
                border: 1rpx solid $primary-color;
              }

              &.status2 {
                color: red;
                border: 1rpx solid red;
              }
            }
          }
        }
      }
    }
  }
}